<?php
$sql = "
CREATE TABLE `ims_yuan_redbag_example` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`weid` int(11) DEFAULT '0',
`batchid` int(11) NOT NULL COMMENT '签到关联红包批次的id',
PRIMARY KEY (`id`),
)ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; 
CREATE TABLE `ims_yuan_redbag_batch` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`weid` int(11) DEFAULT '0',
`sharegettime` varchar(10） NOT NULL COMMENT '分享获得开红包个数',
`allmoney` int(11) NOT NULL COMMENT '批次红包金钱总额',
`bagnumber` int(11) NOT NULL COMMENT '发送红包个数',
`bagrangeper` int(11) NOT NULL COMMENT '获得红包金额百分比范围',
PRIMARY KEY (`id`),
)ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; 
CREATE TABLE `ims_yuan_redbag_history` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`weid` int(11) DEFAULT '0',
`uniacid` varchar(50) NOT NULL,
`getmoney` int(11) NOT NULL COMMENT '获得红包金额',
`getbatchid` varchar(50) NOT NULL COMMENT '获得红包批次id',
`getexampleid` varchar(50) NOT NULL COMMENT '获得红包实例id',
PRIMARY KEY (`id`),
)ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;  
";
pdo_query($sql);